package com.zbkj.common.model.order;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 订单表
 * </p>
 *
 * @author 
 * @since 2024-09-15
 */
@Getter
@Setter
@TableName("pe_order_info")
@ApiModel(value = "OrderInfo对象", description = "订单表")
public class OrderInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键ID")
      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("订单流水号")
    private String orderNo;

    @ApiModelProperty("订单类型 0 流量包订单, 1申请报告订单")
    private Integer orderType;

    @ApiModelProperty("0 客户订单  1 后台添加订单")
    private Integer sourceType;

    @ApiModelProperty("用户id")
    private Long userId;

    @ApiModelProperty("用户手机号")
    private String userPhone;

    @ApiModelProperty("用户公司名")
    private String companyName;

    @ApiModelProperty("应付金额")
    private BigDecimal totalAmount;

    @ApiModelProperty("1 对公转账")
    private Integer payType;

    @ApiModelProperty("1待处理 2 已开通 3 已拒绝 4 超时取消 5手工取消")
    private Integer orderStatus;

    @ApiModelProperty("转账备注")
    private String tfremark;

    @ApiModelProperty("申请报告订单对应项目id")
    private Long projectId;

    @ApiModelProperty("支付凭证图片地址 多个,号分割")
    private String payVouches;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("拒绝原因")
    private String rejectReason;

    @ApiModelProperty("添加时间")
    private Date createTime;

    @ApiModelProperty("更新时间")
    private Date updateTime;

    @ApiModelProperty("0:正常 1:已删除")
    private Integer deleteFlag;

    @ApiModelProperty("0:未申请过发票 1:已开发票 2:未开发票")
    private Integer invoiceFlag;

    @ApiModelProperty("0:普票 1:专票")
    private Integer invoiceType;

    @ApiModelProperty("发票申请时间")
    private Date invoiceApplyDate;

}
